package com.project.senven.commons.uitl;

import lombok.Data;

import java.text.SimpleDateFormat;
import java.util.Date;
@Data
//获取日期工具类
public class DateUtil {

    public static String nowDate() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(date);
    }
}
